import { Button, Result } from "antd";

function NonePage() {
  document.title = "404";
  return (
    <div className="NonePage">
      <Result
        status="404"
        title="404"
        subTitle="对不起，你访问的页面不存在"
        extra={
          <div
            style={{
              display: "flex",
              flexDirection: "row",
              justifyContent: "center",
              alignItems: "center",
            }}
          >
            <div
              style={{
                width: "200px",
                display: "flex",
                flexDirection: "row",
                justifyContent: "space-between",
                alignItems: "center",
              }}
            >
              <Button type="primary" onClick={() => window.history.back()}>
                返回
              </Button>
              <Button type="primary" href="/home">
                去首页
              </Button>
            </div>
          </div>
        }
      />
    </div>
  );
}

export default NonePage;
